var color = require('colors');

var config = {
	notice: 'green',
	error: 'red',
	show: 'rainbow',
	bat: 'blue',
	debug: 'gray'
};

function getTime() {
	let d = new Date()
	return `${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}`
}

function _blog() {
	this.log = function(msg, ...o) {
		console.log('[log]:', getTime(), msg, ...o);
	}
	for (let i in config) {
		this[i] = function(msg, ...o) {
			console.log(`[${i}]:` [config[i]], getTime()[config[i]], msg[config[i]], "\n", ...o);
		}
	}
}


module.exports = new _blog();